.container {
    max-width: 1200px;
    margin: 0 auto;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
    background-image: url(../images/背景图.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    overflow-y: scroll;
}

header {
    background-image: url(../images/标题栏背景图.jpeg);
    color: #7fe9e9; /* #7fe9e9 */
    padding: 20px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 40px;
    padding-left: 40px;
    font-size: 18px;
}

nav ul li a {
    color: #feffff;
    text-decoration: none;
}

nav ul li a:hover {
    color: #ff9900;
}

main {
    padding: 20px;
}

section {
    background-color: #e9e4e4;
    background-image: url(../images/背景图.jpg);
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
/* 主页 实践课程示例 背景颜色 */

h2 {
    color: #333;
    font-size: 24px;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

/* 页脚背景颜色 */
html, body {
    height: 100%;
    margin: 0;
}
  
.content {
    min-height: calc(100vh - 40px); /* 100vh减去footer的高度 */
    /* 也可以使用 padding-bottom: 40px; 并确保 box-sizing: border-box; */
}
  
footer {
    background-color: #333;
    background-image: url(../images/标题栏背景图.jpeg);
    color: #7fe9e9;
    text-align: center;
    padding: 2px 0;
    height: 40px; /* 页脚的高度 */
    width: 100%;
}
  